export const roleText = {
  '64feec8ae6de3ece9c58b57f': '管理员',
  '64feec8ae6de3ece9c58b582': '普通用户',
  '64feec8ae6de3ece9c58b580': '访客',
  '64feec8ae6de3ece9c58b581': '组长',
};

const roleOptionsFn = () => {
  const keys = Object.keys(roleText);
  return keys.map((key) => {
    return {
      label: roleText[key],
      value: key,
    };
  });
};

export const roleOptions = roleOptionsFn();

export const status: any = {
  1: '停用',
  0: '启用',
};

export const statusColor = {
  1: '#f25b54',
  0: '#5EB2FF',
};

const userStatusOptionsFn = () => {
  const keys = Object.keys(status);
  return keys.map((key) => {
    return {
      label: status[key],
      value: Number(key),
    };
  });
};
export const userStatusOptions = userStatusOptionsFn();

export default {};
